import store from '@/store'
export default {
  install (Vue, options) {
    // 权限匹配
    /**
     *
     * @param {String} str 权限标识
     */
    Vue.prototype.$permissionMatch = function (str, list) {
      let t = false;
      if (list && list.length > 0 &&  list.indexOf(str) > -1) {
        t= true
      } else {
        t = false
      }
      return t
    }
  }
}
